<!DOCTYPE html>

<html lang="en">

<head>

	<meta charset="UTF-8">

	<title>注册</title>

	<meta http-equiv="X-UA-Compatible" content="IE=edge">

	<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">

	<link rel="stylesheet" href="../addons/zh_hkad/template/mobile/css/weui.min.css">

	<link rel="stylesheet" href="../addons/zh_hkad/template/mobile/css/jquery-weui.css">

    <script src="../addons/zh_hkad/template/mobile/js/jquery-2.1.4.js"></script>

	<script src="../addons/zh_hkad/template/mobile/js/jquery-weui.js"></script>

    <script src="../addons/zh_hkad/template/mobile/js/city-picker.js"></script>

	<style>

		.bg{

			width: 100%;

			height: auto;

		}

		body{

			padding: 0;

			margin:0;

		}

		.weui-cells:after{

			border-bottom: 1px solid #efefef;

		}

		.weui-cells:before{

			border-top: 1px solid #fff;

		}

		.weui-cells{

			margin-top: 0

		}

		.weui-cell__bd{

			width: 100%;

		    height: 45px;

		}

		.weui-cell__bd label{

			width: 20%;

		    float: left;

		    line-height: 40px;

		    font-size: 16px;

		}

		.msg{

			float: left;

		    width: 80%;

		    height: 100%;

		    font-size: 14px;

		    border:0;

		    color: #888;

		}

		.submit{

			width: 80%;

		    background: #2f8ff3;

		    color: #fff;

		    font-size: 18px;

		    border-radius: 15px;

		    padding: 5px 0;

		    border: 0;

		    height: auto;

		    margin: 85px auto;

		    display: block;

		}
		.zcts{
			margin-top: 20px;
			font-size: 14px;
			padding: 5px 20px;
		}
		.zcts i{
			font-size: 14px;
			float: left;
		}
		.zcts span{
			float: left;
			font-size: 14px;
			line-height: 14px;
			margin-left: 5px;
			color: #4d4d4d;
		}
		.zcts p{
			width: 100%;
			font-size: 14px;
			line-height: 24px;
			margin-top:3px;
			color: #ff5858;
		}
		select{
			padding:0 10px; 
			text-align: center;
			float: left;
			height: 36px;
			font-size: 14px;
			line-height: 36px;
			margin-top: 5px;
			border:none;
			outline: none; 
			background: none;
			-webkit-appearance: none;
		}
		select option{
			text-align: center;
		}
		.weui-cell__bd span{
			display: inline-block;
			float: left;
			font-size: 14px;color: #333;
			line-height: 36px;
			margin-top: 5px;
			margin-right: 10px;

		}
	</style>

</head>

<body>

	<form action="" method="post" class="form-horizontal form" enctype="multipart/form-data" id="pay_form">

		    <input type="hidden" name="c" value="entry">
		    <input type="hidden" name="a" value="site">
		    <input type="hidden" name="m" value="zh_hkad">
		    <input type="hidden" name="do" value="register">  

		    <input type="hidden" name="name" value="">            <!-- 人  -->
		    <input type="hidden" name="phone" value="">          <!-- 电话 -->
		    <input type="hidden" name="detail_address" value="">        <!-- 地址 --> 
		    <input type="hidden" name="work" value=""> 

	    <div class="weui-cells weui-cells_form">	    

	      <div class="weui-cell weui-cell_vcode">

	        <div class="weui-cell__bd  weui-cell_vcode">

				<label class="weui-label">姓名</label>

		        <input class="weui-input msg name" type="text" placeholder="请输入您的真实姓名" value="">

	        </div>

	      </div>

	      <div class="weui-cell weui-cell_vcode">

	        <div class="weui-cell__bd">

				<label class="weui-label">手机</label>

	          <input class="weui-input msg phone" type="text" placeholder="请输入您的手机号" value="">

	        </div>

	      </div>


	      <div class="weui-cell weui-cell_vcode">

	        <div class="weui-cell__bd">
				<label class="weui-label">单位</label>
	          <input class="weui-input msg detail_address" type="text" value="" placeholder="请填写详细地址" value="">

	        </div>

	      </div>


	      <div class="weui-cell weui-cell_vcode">

	        <div class="weui-cell__bd">
				<label class="weui-label">职务</label>
	          <input class="weui-input msg work" type="text" value="" placeholder="请填写您的职务" value="">

	        </div>

	      </div>

	    </div>

	    <!--<div class="zcts">
	    	<div style="overflow: hidden;"><i class="weui-icon-warn weui-icon_msg"></i><span>注册提示：</span></div><p>{$rinfo['tip']}</p>
	    </div>-->

	    <input class="weui-input submit" type="submit" value="注册">	      

  	</form>

</body>



</html>



<script>	
// $(function(){
	

// 	$(".submit").click(function(){
		
// 		var name=$(".name").val()//姓名

// 		var phone=$(".phone").val()//手机号

// 		var detail_address=$(".detail_address").val()//详细地址
// 		var work=$(".work").val()//详细地址

//     	var myreg = /^[1][3,4,5,7,8][0-9]{9}$/;

// 		if(name==""){
// 			alert("请输入姓名!")
// 			return false
// 		}else if(!myreg.test(phone)){
// 			alert("您输入的手机号有误!")
// 			return false
// 		}else if(detail_address==""){
// 			alert("请输入单位")
// 			return false
// 		}else if(work==""){
// 			alert("请输入职务")
// 			return false
// 		}

// 		$.ajax({

//             type:"post",

//             url:"{$_W['siteroot']}app/index.php?i={$_W['uniacid']}&c=entry&a=site&do=register&m=zh_hkad",

//             dataType:"json",

//             data:{name:name,phone:phone,work:work,detail_address:detail_address},

//             success:function(data){

//             	if(data.code==200){

//             		console.log(data);  

// 	                var xxid= data.data_id.id;

// 	                sessionStorage.setItem("key", xxid);   

// 					window.location.href="{$_W['siteroot']}app/index.php?i={$_W['uniacid']}&c=entry&do=detail&m=zh_hkad";//跳转详情

//         		}

//         		if (data.code==502) {

//         			alert('该用户已存在！');

// 					window.location.href="{$_W['siteroot']}app/index.php?i={$_W['uniacid']}&c=entry&do=detail&m=zh_hkad";

//         		}

                

//             },

//             error : function(data) {

//                 alert(data.msg);

// 				return false

//             }

//         })

// 	})

// 	return false

// })
$(document).on("submit","#pay_form",function () {
	var name=$(".name").val();
	var phone=$(".phone").val();
	var detail_address=$(".detail_address").val();
	var work=$(".work").val();
	var myreg = /^[1][3,4,5,7,8][0-9]{9}$/;

	if(name==""){
		alert("请输入姓名!")
		return false
	}else if(!myreg.test(phone)){
		alert("您输入的手机号有误!")
		return false
	}else if(detail_address==""){
		alert("请输入单位")
		return false
	}else if(work==""){
		alert("请输入职务")
		return false
	}
	$("input[name='name']").val(name);
	$("input[name='phone']").val(phone);
	$("input[name='detail_address']").val(detail_address);
	$("input[name='work']").val(work);
})
</script>